import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

const app = createApp(App)

app.config.errorHandler = (err, vm, info) => {
  /* 处理错误 */
  console.error('[Global Error]', err)
  console.log('Error in hook:', info)
}

app.use(createPinia())
app.use(router)

app.mount('#app')

const app2 = createApp(App)
app2.mount('#container-2')

const app3 = createApp(App)
app3.mount('#container-3')